/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.race.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.race.entity.RaceTeam;
import com.lczyfz.istep.modules.race.entity.RaceUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 竞赛账号管理DAO接口
 * @author CY
 * @version 2017-04-17
 */
@MyBatisDao
public interface RaceUserDao extends CrudDao<RaceUser> {

    //所以的竞赛团队
    List<RaceTeam> findAllClassList();

    RaceUser findId(String id);

    void  inpuUserRole(RaceUser raceUser);

    void deleteUserRole(RaceUser id);

    List<RaceUser> findUserRole();

    //根据登录名获取学生记录
    RaceUser findStudentByLoginName(@Param("loginName")String loginName,@Param("DEL_FLAG_NORMAL")String DEL_FLAG_NORMAL);

    RaceUser findByLoginName(String loginName);

}